package com.suixun.util;

import org.apache.commons.lang.StringUtils;

public class SuixunAssert {
	
	public static void assertNull(Object obj, String msg){
		if(obj == null){
			throw new RuntimeException(msg);
		}
	}
	
	public static void assertBlank(String str, String msg){
		if(StringUtils.isBlank(str)){
			throw new RuntimeException(msg);
		}
	}
	
	public static void main(String[] args) {
		//assertNull(null, "参数不能为空！ ");
		assertBlank("", "参数不能为空!");
	}
}
